public class mathSum{
    public static void main(String[] args) {
        int start = 1,result = 0;
        do result += start++;
        while (start <= 500);
        System.out.println("结果是：" + result);
    }
}